from gameset.phoenicia.base import *

from ..agriculture import SeaResource


class Clams(SeaResource, Material):
    singular   =_ ('Clam')
    plural     =_ ('Clams')
    likelyhood =_ (7)


class Pearls(Material):
    singular =_ ('Pearl')
    plural   =_ ('Pearls')
    quality  =_ (0.8)


class PearlExtractor(Workshop):
    name     =_ ('Pearl Extractor')
    color    =_ (Blue.with_value(0.4).with_saturation(0.4))
    cost     =_ (250)
    size     =_ (2)
    staff    =_ (5)
    produces =_ (Production(input = Clams(1), output = Pearls(1), duration = 0.5))
